package org.jivesoftware.openfire.plugin.model;

import org.jivesoftware.util.JiveConstants;

import java.sql.Timestamp;

/**
 * @author lyusantu@gmail.com
 * @version 1.0
 * @description 群聊聊天记录
 * @date 2018-12-11
 */
public class GroupChatLogs {

    private long messageId;

    private String sessionJid;

    private String sender;

    private String content;

    private String nickName;

    private Timestamp createDate;

    private String uuid;

    public interface LogState {
        int show = 0;
        int remove = 1;
    }

    public class ChatLogsConstants extends JiveConstants {
        // 日志表id自增对应类型
        public static final int CHAT_LOGS = 52;
        // 用户在线统计id自增对应类型
        public static final int USER_ONLINE_STATE = 53;
    }

    public GroupChatLogs() {
    }

    public GroupChatLogs(String sender,  String uuid) {
        this.sender = sender;
        this.uuid = uuid;
    }

    public GroupChatLogs(String sessionJid, String content, Timestamp createDate) {
        this.sessionJid = sessionJid;
        this.content = content;
        this.createDate = createDate;
    }

    public GroupChatLogs(long messageId, String sessionJid, String content, Timestamp createDate) {
        this.messageId = messageId;
        this.sessionJid = sessionJid;
        this.content = content;
        this.createDate = createDate;
    }

    public long getMessageId() {
        return messageId;
    }

    public void setMessageId(long messageId) {
        this.messageId = messageId;
    }

    public String getSessionJid() {
        return sessionJid;
    }

    public void setSessionJid(String sessionJid) {
        this.sessionJid = sessionJid;
    }

    public String getSender() {
        return sender;
    }

    public void setSender(String sender) {
        this.sender = sender;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public Timestamp getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Timestamp createDate) {
        this.createDate = createDate;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }
}
